import request from '@/utils/request'

// 查询支出记录列表
export function listExpenseRecord(query) {
  return request({
    url: '/edu/expense/record/list',
    method: 'get',
    params: query
  })
}

// 查询支出记录详细
export function getExpenseRecord(id) {
  return request({
    url: '/edu/expense/record/' + id,
    method: 'get'
  })
}

// 新增支出记录
export function addExpenseRecord(data) {
  return request({
    url: '/edu/expense/record',
    method: 'post',
    data: data
  })
}

// 修改支出记录
export function updateExpenseRecord(data) {
  return request({
    url: '/edu/expense/record',
    method: 'put',
    data: data
  })
}

// 删除支出记录
export function delExpenseRecord(id) {
  return request({
    url: '/edu/expense/record/' + id,
    method: 'delete'
  })
}
